<?php


namespace app\controllers;


use app\models\request\ReqLogin;
use app\models\request\ReqUserList;
use app\models\response\RespUserNavList;
use app\models\UserDto;
use app\service\UserService;

class UserListController extends BaseJsonController
{
    /**
     * @param $req
     * @param $userInfo UserDto
     * @return RespUserNavList|mixed
     */
    public function doService($req, $userInfo)
    {

        $s = new UserService();
        return $s->queryPage($req);
    }

    /**
     * @return ReqUserList
     */
    protected function injectionReq()
    {
        return new ReqUserList();
    }

    /**
     * @return string|null
     */
    protected function permissionName() {
        return 'sys/user';
    }

}